<template>
  <div class="panel-right panel">
    <p style="text-align:center;padding:10px;">属性栏</p>
    <el-scrollbar wrap-class="scrollbar-wrapper inspect">
      <attr-builder :figure="figure"/>
    </el-scrollbar>
  </div>
</template>

<script>
// import isFunction from "lodash/isFunction";
import AttrBuilder from "./components/AttrBuilder";
export default {
  name: "AttributeBar",
  components: {
    AttrBuilder
  },
  props: {
    figure: {
      type: Object,
      default: function() {
        return {};
      }
    }
  },
  data() {
    return {};
  },
  watch: {},
  methods: {}
};
</script>

<style lang="scss" scoped>
@import "~@/assets/style/variables.scss";
.panel-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-left: 1px solid hsla(0, 0%, 0%, 0.08);
  width: $attributeBarWidth;
  .inspect {
    width: 100%;
  }
  .scrollbar-wrapper {
    overflow-x: hidden !important;
  }
}
</style>
